home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1999 November / cd joystick no109 novembre 1999.iso / Data / sharewares / utilitaires / XQXSET50.ZIP / _SETUP.1 / XQ OEM Info Model.xpl < prev    next >
Text File  |  1999-07-18  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\OEM Information"
  5. "NAME"="General Information"
  6. "VERSION"="1.3"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="OEM Name"
  9. "TEXT 2"="Computer Model"
  10. "DESCRIPTION 1"="To see these values, select "Start" | "Settings" | "Control Panel" and click "System"."
  11. "DESCRIPTION 2"="You can create your own computer ;-)."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. 'Declaration of some constants
  18. sI="OEMINFO.INI"
  19. sI=GetWinSysDir & sI
  20. sT="General"
  21.  
  22. 'Called when the Plugin is started
  23. Sub Plugin_Initialize
  24.  s=IniReadValue(si,st,"Manufacturer")
  25.  
  26.  'Cheating OK... but how cares??!?!?!
  27.  if IsEmpty(s) then
  28.   SetUIElement 1,"Xteq Systems"
  29.  else 
  30.   SetUIElement 1,s
  31.  end if
  32.  
  33.  s=IniReadValue(si,st,"Model")
  34.  SetUIElement 2,s
  35. End Sub
  36.  
  37. 'Called when the Plugin should validate the Data the user has entered
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. 'Called when the Plugin should apply the changes
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  s=GetUIElement(1)
  44.  Call IniWriteValue(si,st,"Manufacturer",s)
  45.  
  46.  s=GetUIElement(2)
  47.  Call IniWriteValue(si,st,"Model",s)
  48. End Sub
  49.  
  50. 'Called when the Plugin is about to be removed from memory
  51. Sub Plugin_Terminate
  52. End Sub
  53.